const enum DirectionConst {
  Up,
  Down,
  Left,
  Right
}

let directionCon = [DirectionConst.Up, DirectionConst.Down, DirectionConst.Left, DirectionConst.Right]
console.log('DirectionConst', DirectionConst.Up, DirectionConst[0])